import 'package:flutter/material.dart';

class ColorConfig {
  static const main = Color(0xFFFC7900); //主题色
  static const primaryColor = main; //主题色
  static const black = Color(0xFF212224);
  static const subBlack = Color(0xFF535050);

  static const success = Color(0xFF1EC66D);
  static const error = Color(0xFFFF3B30);

  static const grey = Color(0xFFA8A8B6);
  static const text_grey = Color(0xFF8B8C91);
  static const gap = Color(0xFFE5E5E5);

  static const page = Color(0xFFF6F6F6);

  static const bgGrey = Color(0xFFF1F3F5);

  static const Color app_main = main;
  static const Color dark_app_main = Color(0xFFFF7F32);

  static const Color bg_color = Color(0xFFF5F5F5);
  static const Color page_bg_color = Color(0xfff7f7f7);
  static const Color dark_bg_color = Color(0xFF18191A);

  static const Color material_bg = Color(0xFFFFFFFF);
  static const Color dark_material_bg = Color(0xFF303233);

  static const Color text = Color(0xFF333333);
  static const Color dark_text = Color(0xFFB8B8B8);

  static const Color text_gray = Color(0xFF999999);
  static const Color dark_text_gray = Color(0xFF666666);

  static const Color text_gray_c = Color(0xFFcccccc);
  static const Color dark_button_text = Color(0xFFF2F2F2);

  static const Color bg_gray = Color(0xFFF6F6F6);
  static const Color dark_bg_gray = Color(0xFF1F1F1F);

  static const Color line = Color(0xFFEEEEEE);
  static const Color dark_line = Color(0xFF3A3C3D);

  static const Color red = Color(0xFFF93A4A);
  static const Color dark_red = Color(0xFFF93A4A);

  static const Color text_disabled = Color(0xFFD4E2FA);
  static const Color dark_text_disabled = Color(0xFFCEDBF2);

  static const Color button_disabled = Color(0xFF96BBFA);
  static const Color dark_button_disabled = Color(0xFF83A5E0);

  static const Color unselected_item_color = Color(0xffbfbfbf);
  static const Color dark_unselected_item_color = Color(0xFF4D4D4D);
  static const Color FF151622 = Color(0xFF151622);
  static const Color FF666666 = Color(0xFF666666);
  static const Color FF333333 = Color(0xFF333333);
  static const Color FF020306 = Color(0xFF020306);
  static const Color FF242933 = Color(0xFF242933);
  static const Color FF007AFF = Color(0xFF007AFF);
  static const Color FFD8D8D8 = Color(0xFFD8D8D8);
  static const Color FFC7D7FA = Color(0xFFC7D7FA);
  static const Color FFEEEEEE = Color(0xFFEEEEEE);
  static const Color FFF0F0F0 = Color(0xFFF0F0F0);
  static const Color FFBCB6B0 = Color(0xFFBCB6B0);


  /// Construct a color from a hex code string, of the format #RRGGBB.
  static Color hexToColor(String code) {
    return Color(int.parse(code.substring(1, 7), radix: 16) + 0xFF000000);
  }

}
